package com.snow.remote;

import com.alibaba.dubbo.config.annotation.Reference;
import com.snow.service.DubboService;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @Author: 爱飘de小子
 * @CreateDate: 2018/7/24 22:09
 * @Version: 1.0
 */
@Service
public class DemoRemote {


    @Reference(version = "1.0.0",application = "${dubbo.application.id}")
    private DubboService demoService;


    public String sayHello(String name) {
        return demoService.sayHello(name);
    }
}
